from DrissionPage import Chromium, SessionPage

def main():
    tab = Chromium().latest_tab
    tab.get('https://detail.tmall.com/item.htm?detail_redpacket_pop=true&id=599217001492&ltk2=17454857542006yyte0a2vvjc0ny2kqo67h&ns=1&pisk=gvttEuvpuvettmKOKdu3oSILRtk3H2vZsCJ7msfglBdph6qmQG0VDICpg1bGf1qADKd2iIpqQt1XGICDS2mkQdSVcbAxq0vajXhYjCQf56MfhOUjKNN9CGy1cbcoDtZyvjjXidn3P2aCU661hO6spM6GHPsflO9Ipt601rZ6GvHdntw1hZ16dy65eia_5P_CAT6fGO1b5wMd361fciOfRvB2rUlRgufuDU5GUupusGrbcHBOR2v1OWQDAOQONdOTYkyVBNCWC6GJrpKGkCQ9xcFPBe9JTOdq4lS1kFT5fnh-XM9y-C6pGbUAOUKwDaxtwz56bsRRfehQXisGeKQk-xaRtE9evwKtr-WejKtNrgiz1sYHenBv0jopwdO9Pat_6g8vq3LxA7fRnPMKprzV59PWa0c2HPmpV9CoKi44uwnAp_DKPrzV5TWdZvX_ur7KX&priceTId=undefined&query=hbn%E5%8F%91%E5%85%89%E6%B0%B4&skuId=4719283789314&spm=a21n57.1.hoverItem.1&utparam=%7B%22aplus_abtest%22%3A%2275333f06fd03c3711d4af91823dab21f%22%7D&xxc=ad_ztc')
    tab.ele('@text():全部评价').scroll.to_see()
    tab.ele('@text():全部评价').click()
    tab.change_mode()
    tab.wait.load_start()
    tab.wait.eles_loaded('.QJEEHAN8H5--content--e320bf32')
    tab.ele('.QJEEHAN8H5--content--e320bf32').wait.displayed()
    all_comments_ele = tab.ele('.QJEEHAN8H5--content--e320bf32').eles('tag:div@@class^QJEEHAN8H5--Comment')

    for com in all_comments_ele:
        print(com('.QJEEHAN8H5--content--_8e6708c').text)


if __name__ == '__main__':
    main()